Quarto
Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.
The Book
By Sam Assaf
Abstract & Example : Analysts & Coaches
Introduction : Analysts & Coaches
Problem Framing : Analysts
Data Overview : Analysts
Variables in Model : Analysts & Coaches
| Win Probability Added (WPA) |
- Stadium
- Roof
- Surface
- Temperature
- Wind
- Weather detail
|
- Play type (input) |
- Field goal probability |
- Yards to go (first down or | score) |
- Yardline (continuous and | binned) |
- EPAs |
- ELOs |
- Score differential (binned)|
- Game time remaining (binned)
- Score difference time ratio|
|
# Create vectors for each category of information
OutcomeVariable <- c("Win Probability Added (WPA)", '', '', '', '', '', '', '', '')
GameData <- c("Stadium", "Roof", "Surface", "Temperature", "Wind", "Weather detail", '', '', '')
PlayData <- c("Play type (input)", "Field goal probability", "Yards to go (first down or score)",
"Yardline (continuous and binned)³", "EPAs⁴", "ELOs⁵", "Score differential (binned)⁶",
"Game time remaining (binned)⁷", "Score difference time ratio⁸")
# Combine into a data frame
df <- data.frame(OutcomeVariable, GameData, PlayData, stringsAsFactors = FALSE)
# Create the gt table
gt_table <- df %>%
gt() %>%
cols_label(
OutcomeVariable = "Outcome Variable",
GameData = "Game Data",
PlayData = "Play Data")
# ) %>%
# tab_spanner(label = "Game Data", columns = vars(GameData)) %>%
# tab_spanner(label = "Play Data", columns = vars(PlayData))
# Print the gt table
gt_table
| Win Probability Added (WPA) |
Stadium |
Play type (input) |
|
Roof |
Field goal probability |
|
Surface |
Yards to go (first down or score) |
|
Temperature |
Yardline (continuous and binned)³ |
|
Wind |
EPAs⁴ |
|
Weather detail |
ELOs⁵ |
|
|
Score differential (binned)⁶ |
|
|
Game time remaining (binned)⁷ |
|
|
Score difference time ratio⁸ |
Data Visualization : Analysts & Coaches
Methods : Analysts
Model Adjustments : Analysts & Coaches
Model Without Risk Aversion Adjustments : Analysts & Coaches
Model With Risk Aversion Adjustments : Analysts & Coaches
Discussion : Analysts & Coaches
Examples Plots / Situation : Analysts & Coaches
Conclusion and Future Work : Analysts & Coaches